package com.example.anjia03_3z.exception;

import com.example.anjia03_3z.web.ServiceCode;
import lombok.Getter;

public class ServiceException extends RuntimeException{

    @Getter
    private ServiceCode serviceCode;


    public ServiceException(String message,ServiceCode serviceCode) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceException(ServiceCode errNotFound, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }
}
